<%@ page import="com.ld.manageBook.service.UserService" %>
<%@ page import="com.ld.manageBook.service.impl.UserServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: 刘邓
  Date: 2023-06-01
  Time: 20:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除用户信息</title>
</head>
<body>
<%! private UserService userService = new UserServiceImpl();
%>
<%
    int id = Integer.parseInt(request.getParameter("id"));
    int i = userService.deleteUserById(id);

	if(i == 0){
		out.println("删除失败,请稍后重试<br></br>");
    }
	if(i == 1){
		out.println("删除成功<br></br>");
    }
    out.println("<a href='/home/manageUser.jsp'>返回用户管理页面</a>");
%>
</body>
</html>
